package com.project.app.server.broadroom;

import com.project.common.core.controller.BaseController;
import com.project.common.core.page.TableDataInfo;
import com.project.server.domain.broadroom.TBroadroom;
import com.project.server.service.broadroom.ITBroadroomService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.text.ParseException;
import java.util.List;

/**
 * 小程序会议室信息
 */
@RestController
@RequestMapping("app/server/broadroom")
public class ATBroadroomController extends BaseController {

    @Resource
    private ITBroadroomService tBroadroomService;

    /**
     * 查询会议室信息列表
     */
    //@PreAuthorize("@ss.hasPermi('server:broadroom:list')")
    @GetMapping("/list")
    public TableDataInfo list(TBroadroom tBroadroom) throws ParseException {
        startPage();
        List<TBroadroom> list = tBroadroomService.selectTBroadroomList(tBroadroom);
        return getDataTable(list);
    }

}
